<?php if ($message != '<br/>'): ?>
    <div class="mbox <?php echo $this->MessageCssClass ; ?>">
        <?php echo str_replace('<br/>','',$message);?>
    </div>
<?php endif; ?>
<?php if ($errors != '<br/>'): ?>
    <div class="mbox <?php echo $this->ErrorCssClass ; ?>">
        <?php echo str_replace('<br/>',Yii::t('Core','Please fix the follow errors'),$errors); ?>
    </div>
<?php endif; ?>
<?php
if (strip_tags($errors) != '' || strip_tags($message) != '')
{
    $script = "
setTimeout(function(){
    jQuery('.mbox').hide();
}, 60000);//1 minute
";
    Yii::app()->clientScript->registerScript(__CLASS__.'AutoHide', $script);
}
?>